window.onload=function (){
    var judge = true;
    if (localStorage.getItem('userHao') == null) {
        window.location = 'http://localhost:8080/future/admin/allMusic';
    }
    var music = document.getElementsByClassName('music')[0];
    var musicForm = document.getElementsByClassName('musicForm')[0];
    music.onclick = function () {
        if (judge == true) {
            musicForm.style.display = 'block';
            judge = false;
            console.log();
        } else {
            musicForm.style.display = 'none';
            judge = true;
        }
    }
    //头像处的列表的出现
    var headPhoto = document.getElementsByClassName('headPhoto')[0];
    var personage = document.getElementsByClassName('personage')[0];
    var xia2 = document.getElementsByClassName('xia2')[0];
    headPhoto.innerHTML = localStorage.getItem('userHao');
    headPhoto.onclick = function () {
        if (judge == true) {
            console.log("aaaaa");
            personage.style.height = '8%';
            judge = false;
        } else {
            personage.style.height = '0%';
            judge = true;
        }

    }




}